package com.example.email.mapper;

import com.example.email.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {

    /**
     * 登录
     * @param mailboxNo 用户名
     * @param password 密码
     * @return
     */
    @Select("SELECT * FROM `user` WHERE MailboxNo=#{mailboxNo} AND `password`=#{password}")
    User logIn(@Param("mailboxNo") String mailboxNo, @Param("password") String password);
}
